package com.ly.emp.bean.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 树形菜单-湖北
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "Tree对象")
public class HubTreeVO {

    @Schema(description = "id（id）")
    private Object id;

    /**
     * key
     */
    @Schema(description = "key")
    private String key;

    @Schema(description = "编码")
    private String code;

    @Schema(description = "编码")
    private String code1;

    @Schema(description = "名称")
    private String title;

    @Schema(description = "父编码")
    private String parentCode;

    @Schema(description = "是否为根结点")
    private Boolean isRoot;

    @Schema(description = "是否为项目结点")
    private Boolean isRation;

    @Schema(description = "是否为叶子结点")
    private Boolean isLeaf;

    @Schema(description = "是否能点击")
    private Boolean disabled = false;

    @Schema(description = "是否选中")
    private Boolean checked = false;

    @Schema(description = "附加信息")
    private Object desc;

    @Schema(description = "子Tree")
    private List<HubTreeVO> children;

    public HubTreeVO(Object id, String code, String title, Boolean isLeaf, List<HubTreeVO> children) {
        this.id = id;
        this.code = code;
        this.title = title;
        this.isLeaf = isLeaf;
        this.children = children;
    }
}


